﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>


<div>
<img id="imgarm" alt="armenian" onclick="changearm()" />
<img id="imgeng" alt="english" onclick="changeeng()"/>
<input type="hidden" id="lastviewlink" value="/Home/Home/am"/> 
</div>

<script type="text/javascript">
    function changearm() {
        var url = $("#lastviewlink").val();
        url.replace("en", "eng");
        $("#lastviewlink").val(url);
        window.location = url;
    }

    function changeeng() {
        var url = $("#lastviewlink").val();
        url = url.replace("eng", "en");
        $("#lastviewlink").val(url);
        window.location = url;
    }
</script>